package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.NoticeDetailView
import hlhj.fhp.checkpoint.javaBean.NoticeDetailBean
import hlhj.fhp.checkpoint.module.NoticeDetailModule

/**
 * Created by Never Fear   on 2018\11\19 0019.
Never More....
 */
class NoticeDetailPresenter :BasePresenter<NoticeDetailModule,NoticeDetailView>(), NoticeDetailModule.NoticeDetailResp {

    override fun detailResp(noticeDetailBean: NoticeDetailBean) {
        view?.setDetail(noticeDetailBean)
    }

    fun getDetail(id:Int,c:Context){
        module?.getNoticeDetail(id, c)
    }

    override fun createModule() {
        module= NoticeDetailModule()
        module.listener=this
    }
}